import {ApiProperty} from "@nestjs/swagger";
import {IsIn, IsNotEmpty, IsNumber, IsString} from "class-validator";

export class randomNodePropertyDto {
    @ApiProperty({
        description: "节点名称，有效值（Author,Label,Type）",
        required: true
    })
    @IsString()
    @IsNotEmpty()
    @IsIn(["Author","Label","Type"])
    nodeName: string;

    // @ApiProperty({
    //     description: "节点属性,示例（name）",
    //     required: true
    // })
    // @IsNotEmpty()
    // @IsString()
    // nodeProperty: string;

    @ApiProperty({
        description: "数据长度",
        required: true
    })
    @IsNotEmpty()
    size: number;
}
